<%@ page errorPage="/jsp/exceptionHandler.jsp"%>
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html"%>
<%
	if (session.getAttribute("user") != null)
		response.sendRedirect("/jsp/home.jsp");
%>
<html>
<head>
<title>Sign Up</title>
<script type="text/javascript">
	function showProgress(id1, id2) {
		var elem1 = document.getElementById(id1);
		var elem2 = document.getElementById(id2);
		elem1.style.opacity = 0.5;
		elem2.style.opacity = 1;
	}
</script>
<link rel="stylesheet" href="../resources/css/style2.css" />
<link rel="stylesheet" href="../resources/css/style.css" />
<script type="text/javascript" src="../resources/js/validation.js"></script>
<link href='http://fonts.googleapis.com/css?family=PT+Sans'
	rel='stylesheet' type='text/css'>
</head>
<body class="input_page">
	<div id="header">
		<img src="../resources/images/logo.jpg"
			style="width: 130px; height: 40px; margin: 20px;" />
	</div>
	<table class="maintb" cellpadding="0" cellspacing="0">
		<tr style="height: 540px;">
			<td>
				<div class="input_box" id="input_box">
					<html:form action="SignupAction" method="post">
						<div class="top_b">Register for Free</div>
						<div class="alert" id="alert">
							<html:errors />
						</div>

						<div class="cnt_b">
							<div class="formRow">
								<div class="input-prepend">
									<span class="add-on"><i class="icon-user"></i> </span>
									<html:text styleId="watermark" name="SignupForm"
										property="emailId" maxlength="50"
										value="Enter Your corporate Email Id"
										onblur="FuncWaterMark(this, event);"
										onfocus="FuncWaterMark(this, event);" />


								</div>
							</div>
						</div>
						<div class="btm_b clearfix">
							<span class="link_reg">Already Registered? <a
								href="../index.jsp"><br />Login here</a> <html:submit
									style="margin-top:-13px"
									styleClass="btn btn-inverse pull-right"
									onclick="this.disabled=true; showProgress('input_box', 'progress')">Sign Up</html:submit>
							</span>
						</div>
					</html:form>
				</div>
				<div align="center">
					<img src="../resources/images/progress.gif" id="progress"
						style="opacity: 0; height: 60px; width: 60px" />
				</div>
			</td>
		</tr>
	</table>
	<jsp:include page="/jsp/footer.jsp"></jsp:include>

</body>
</html>
